package fr.iut2.sil1.trolledit.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface GestionTrollAsync {

	void getTroll(String nom, AsyncCallback<Troll> callback);

	void saveTroll(Troll troll, AsyncCallback<String> callback);

	void updateTroll(Troll troll, AsyncCallback<Void> callback);

	void getTrolls(AsyncCallback<ArrayList<Troll>> callback);

	void deleteTroll(Troll troll, AsyncCallback<Void> asyncCallback);

}
